
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let p1=new Promise(resolve=>{
            setTimeout(() => {
                 resolve("唐玮");
            }, 2000);
        });

          let p2=new Promise(resolve=>{
            setTimeout(() => {
                 resolve("何彩霞");
            }, 2000);
        });

       async  function  get(){
           //并行接收
          return await Promise.all([p1,p2]);
          
           
       }
        get().then(v=>{console.log(v);})
    </script>
</body>
</html>